package com.asjy.dao;

import com.asjy.controller.OrderController;
import com.asjy.po.Order;
import com.asjy.po.OrderExt;
import com.asjy.po.OrderItem;
import com.asjy.po.OrderPageBean;

import java.util.List;
import java.util.Map;

/**
 * @Auther: lilinlin
 * @Date: 2021/4/16
 * @Description: com.asjy.service
 * @version: 1.0
 */
public interface OrderDao {
    void saveOrder(Order order);

    void saveOrderItem(OrderItem orderItem);


    OrderExt getOrderInfo(Integer oId);

    List<OrderExt> getOrderByUid(OrderPageBean orderPageBean);

    Integer getOrderCountByUid(Integer uId);

//    返回多个map，因此使用List，泛型为Map
    List<Map<String,Integer>> getOrderCountByState(Integer uId);

    void changeState(Order order);


    ;
}